home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Python 1.4 / Python 1.4 source / Mac / Python / macgetcompiler.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-19  |  570 b   |  39 lines  |  [TEXT/CWIE]

  1. /* Return a string representing the compiler name */
  2.  
  3. #include "config.h"
  4.  
  5. #ifdef THINK_C
  6. #define COMPILER " [THINK C]"
  7. #endif
  8.  
  9. #ifdef __MWERKS__
  10. #ifdef USE_GUSI
  11. #define HASGUSI " w/GUSI"
  12. #else
  13. #define HASGUSI ""
  14. #endif
  15. #ifdef __powerc
  16. #define COMPILER " [CW PPC" HASGUSI "]"
  17. #else
  18. #ifdef __CFM68K__
  19. #define COMPILER " [CW CFM68K" HASGUSI "]"
  20. #else
  21. #define COMPILER " [CW 68K" HASGUSI "]"
  22. #endif
  23. #endif
  24. #endif
  25.  
  26. #ifdef MPW
  27. #ifdef __SC__
  28. #define COMPILER " [Symantec MPW]"
  29. #else
  30. #define COMPILER " [Apple MPW]"
  31. #endif
  32. #endif
  33.  
  34. char *
  35. Py_GetCompiler()
  36. {
  37.     return COMPILER;
  38. }
  39.